gtkswitch: Don't be eager in accepting the gesture
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 26 Jun 2020 15:35:05 +0000 (17:35 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 26 Jun 2020 15:48:10 +0000 (17:48 +0200)
commitb81bbde7c85cb74177e16dac510cb11931fb152c
tree0b9a1b50edb674abe57f68435386779e8c20f4cd
parent3f55bfe2cb2e7c4486cec0d349f42b9ede7aad3d
gtkswitch: Don't be eager in accepting the gesture

The gesture should be accepted whenever it triggers uncancellable
actions in the widget. This means it should be accepted if the
click does result in toggling the switch.

This leaves the pan gesture room to handle dragging the handle.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2895
gtk/gtkswitch.c